package me.zhengjie.config.entity;

import lombok.Data;

import java.util.List;

@Data
public class PageData<T>{

    private List<T> list;
    private Long total;
    private Long totalPage;


    public PageData(List<T> list, Long total,Long totalPage) {
        this.list = list;
        this.total = total;
        this.totalPage = totalPage;
    }

    public static <T> PageData<T> valueOf(List<T> data, Long total,Long totalPage){
        return new PageData<>(data,total,totalPage);
    }

}
